package com.tech.connect.api;


import com.ksy.common.utils.CommonApiUtils;
import com.tech.connect.model.ItemRenMai;
import com.tech.connect.model.PagerModel;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;


/**
 * Created by Ksy
 */

public class RenMaiHttp extends CommonApiUtils {
    public static Map<String, Object> getMap() {
        return new HashMap<>();
    }

    public interface ConnectApiServer {

        @POST("v1/talent/connection/city/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> tongxiang(@Body Map<String, Object> map);


        @POST("v1/talent/connection/education/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> xiaoyou(@Body Map<String, Object> map);


        @POST("v1/talent/connection/occupation/page")
        Observable<BaseEntity<PagerModel<ItemRenMai>>> tonghang(@Body Map<String, Object> map);


    }

    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> tongxiang(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).tongxiang(map));
    }

    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> xiaoyou(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).xiaoyou(map));
    }

    public static Observable<BaseEntity<PagerModel<ItemRenMai>>> tonghang(Map<String, Object> map, final BaseEntityOb<PagerModel<ItemRenMai>> ob) {
        return ob.bindObed(ConnectApiManager.getApiServer(ConnectApiServer.class).tonghang(map));
    }


}
